package com.note.user.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Package：com.note.user.config
 * @Name：CustomOpenApi
 * @Author：热伊木
 * @Email：uyevan@163.com
 * @Date：2024-05-01-0:14
 * @Description：Knife4j文档配置
 */

@Configuration
public class SwaggerConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("note-user")
                        .contact(new Contact().name("evan").email("uyevan@163.com").url("https://jfkj.xyz"))
                        .version("1.0")
                        .description("note-user用户服务接口")
                        .license(new License().name("Apache 2.0")));
    }
}
